<h2>Serviços</h2>

<table>
    <tr>
        <th>Nome</th>
        <th>Área</th>
        <th>Profissional</th>     
        <th>Ações</th>   
    </tr>

    <!-- Here is where we loop through our $posts array, printing out Servico info -->

    <?php foreach ($servicos as $servico): ?>

    <?php echo $this->Form->input('id', array('value' => $this->Session->read('Auth.User.id'),'type' => 'hidden')); ?></td>

    <tr>
        <td><?php echo $servico['Servico']['nome_servico']; ?></td>
        <td><?php echo $servico['Servico']['area']; ?></td>
        <td><?php echo $servico['Servico']['profissional']; ?></td>           
        <td>
            <?php
            echo $this->Html->link(
                'Detalhes',
                array('action' => 'detalhes', $servico['Servico']['id'])
                );
                ?>
        </td>            
 
    </tr>
        <?php endforeach; ?>
        <?php unset($servico); ?>
    </table>